package cn.csg.iotplatform.module.system.controller.admin.project.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 项目信息新增/修改 Request VO")
@Data
public class ProjectSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14464")
    private String id;

    @Schema(description = "项目编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "项目编号不能为空")
    private String projectNo;

    @Schema(description = "项目名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "项目名称不能为空")
    private String projectName;

    @Schema(description = "建设单位id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "建设单位id不能为空")
    private Long unitCode;

    @Schema(description = "建设单位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "建设单位名称不能为空")
    private String unitName;

    @Schema(description = "建设负责人")
    @NotEmpty(message = "建设负责人不能为空")
    private String unitUser;

    @Schema(description = "建设负责人电话")
    private String unitTel;

    @Schema(description = "承建单位id")
    private String constructionCode;

    @Schema(description = "承建单位名称", example = "李四")
    private String constructionName;

    @Schema(description = "承建单位负责人")
    private String constructionUser;

    @Schema(description = "承建单位负责人电话")
    private String constructionTel;

    @Schema(description = "数据来源")
    private Integer dataSource;

    @Schema(description = "启用", example = "1")
    private Integer enablingStatus;

    @Schema(description = "网关设备数量")
    @NotNull(message = "网关设备数量不能为空")
    private Integer gatewayDeviceNum;

    @Schema(description = "子终端数量")
    @NotNull(message = "子终端数量不能为空")
    private Integer subDeviceNum;

    @Schema(description = "普通设备数量")
    @NotNull(message = "普通设备数量不能为空")
    private Integer commonDeviceNum;

    @Schema(description = "描述", example = "你猜")
    private String description;

    /**
     * 共库新增字段：项目管理单位id，可为空
     */
    @Schema(description = "共库新增字段：项目单位Id")
    private String unitId;

    /**
     * 共库新增字段：项目归属的地市局编码
     */
    @Schema(description = "共库新增字段：项目归属的地市局编码")
    private String unitOrgCode;

    /**
     * 共库新增字段：项目所属业主项目部名称，可为空
     */
    @Schema(description = "共库新增字段：项目部门名称")
    private String projectOwners;

    /**
     * 共库新增字段：项目所属业主项目部id，可为空
     */
    @Schema(description = "共库新增字段：项目部门Id")
    private String projectOwnerId;

}